package wang.jinggo.util;

import java.util.UUID;

/**
 * UUID生成工具类
 *
 * @author yusx
 * @create 2017-08-29 13:57
 */
public class UUIDUtil {

    /**
     * 生成不带'-'的32位UUID
     * @return 32位UUID
     */
    public static String generate(){
        return UUID.randomUUID().toString().replaceAll("-", "");
    }

    public static void main(String[] args) {
        System.out.println(generate());
    }
}
